package com.zhiyou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.mapper.TeacherMapper;
import com.zhiyou.model.FyTeacher;
import com.zhiyou.service.TeacherService;
@Service
public class TeacherServiceImpl implements TeacherService{

	@Autowired
	TeacherMapper teacherMapper;
	//增加
	public void add(FyTeacher fyTeacher) {
		teacherMapper.add(fyTeacher);
	}
	//删除
	public void delete(int id) {
		teacherMapper.delete(id);
	}
	//修改
	public void update(FyTeacher fyTeacher) {
		teacherMapper.update(fyTeacher);
	}
	//查询
	public List<FyTeacher> select() {
	
		return teacherMapper.select();
	}

}
